<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
  <script src="jquery-1.11.3.min.js"></script>
 </head>
 <body>
     <div>
        <h1>aaaaaaaaaaaa</h1>
  	    <h1>bbbbbbbbbbbb</h1>
     </div>
     <div>
        <h2>ccccccccccccccc</h2>
		<h1></h1>
     </div>
	 <div></div>
 </body>
 <script>
 
  // $('div:has(h1)').css({'color':'red'});
   //$('h1:empty').html("ddddddddddddddd").css({'color':'yellow'});
   $('div:parent').css({'color':'red'});
 </script>
</html>
